import request from '@/utils/request.js'

const api_name = '/portal/consult'

// 课程咨询分页列表
export function getConsultPageList (page,limit,data) {
  return request({
    url: `${api_name}/${page}/${limit}`,
    method: 'get',
    params: data
  })
}

// 发表咨询
export function saveConsult (data) {
  return request({
    url: `${api_name}`,
    method: 'post',
    data
  })
}

// 课程咨询分页查询
export function getOrderConsultPageList (page,limit,userId) {
  return request({
    url: `${api_name}/order/${page}/${limit}/${userId}`,
    method: 'get',
  })
}
